<?php
class RegEmail
{
	public static function emailNotificationText()
	{
		$context = "We will send you an email notification to confirm your registration and provide updates. ";
		$context .= "Don't miss the Color Manila Run on Jan 6, 2013 at Bonifacio Global Taguig City, 6AM.  See you there!";
		
		return $context;
	}
	
	public static function registrationComplete($to, $message)
	{
		// subject
		$subject = 'Color Manila Run Registration';
		
		// To send HTML mail, the Content-type header must be set
		$headers  = 'MIME-Version: 1.0' . "\r\n";
		$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
		
		// Additional headers
		$headers .= 'To: '. $to . "\r\n";
		$headers .= 'From: Proactive <proactivesport@gmail.com>' . "\r\n";
		//$headers .= 'Bcc: andrew@falsado.com' . "\r\n";
		
		// Mail it
		mail($to, $subject, $message, $headers);
	}
	
	public static function resetPassword($to, $newPassword)
	{
		// subject
		$subject = 'Color Manila Run Registration';
		
		$message = "You have requested for a password reset. " . $newPassword . " is your new temporary password.";
				
		// Additional headers
		$headers = 'To: '. $to . "\r\n";
		$headers .= 'From: Proactive <proactivesport@gmail.com>' . "\r\n";
		
		mail($to, $subject, $message, $headers);
	}
}